/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race American Indian Shoshone</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15356 (C-0-T14914-S14915-S14916-S15356-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAmericanIndianShoshone()
 * @model extendedMetaData="name='RaceAmericanIndianShoshone'"
 * @generated
 */
public enum RaceAmericanIndianShoshone implements Enumerator {
	/**
	 * The '<em><b>15867</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15867_VALUE
	 * @generated
	 * @ordered
	 */
	_15867(0, "_15867", "1586-7"),

	/**
	 * The '<em><b>15875</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15875_VALUE
	 * @generated
	 * @ordered
	 */
	_15875(1, "_15875", "1587-5"),

	/**
	 * The '<em><b>15883</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15883_VALUE
	 * @generated
	 * @ordered
	 */
	_15883(2, "_15883", "1588-3"),

	/**
	 * The '<em><b>15891</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15891_VALUE
	 * @generated
	 * @ordered
	 */
	_15891(3, "_15891", "1589-1"),

	/**
	 * The '<em><b>15909</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15909_VALUE
	 * @generated
	 * @ordered
	 */
	_15909(4, "_15909", "1590-9"),

	/**
	 * The '<em><b>15917</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15917_VALUE
	 * @generated
	 * @ordered
	 */
	_15917(5, "_15917", "1591-7"),

	/**
	 * The '<em><b>15925</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15925_VALUE
	 * @generated
	 * @ordered
	 */
	_15925(6, "_15925", "1592-5"),

	/**
	 * The '<em><b>15933</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15933_VALUE
	 * @generated
	 * @ordered
	 */
	_15933(7, "_15933", "1593-3"),

	/**
	 * The '<em><b>15941</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15941_VALUE
	 * @generated
	 * @ordered
	 */
	_15941(8, "_15941", "1594-1"),

	/**
	 * The '<em><b>15958</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15958_VALUE
	 * @generated
	 * @ordered
	 */
	_15958(9, "_15958", "1595-8"),

	/**
	 * The '<em><b>15966</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15966_VALUE
	 * @generated
	 * @ordered
	 */
	_15966(10, "_15966", "1596-6"),

	/**
	 * The '<em><b>15974</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15974_VALUE
	 * @generated
	 * @ordered
	 */
	_15974(11, "_15974", "1597-4"),

	/**
	 * The '<em><b>15982</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15982_VALUE
	 * @generated
	 * @ordered
	 */
	_15982(12, "_15982", "1598-2"),

	/**
	 * The '<em><b>15990</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15990_VALUE
	 * @generated
	 * @ordered
	 */
	_15990(13, "_15990", "1599-0"),

	/**
	 * The '<em><b>16006</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_16006_VALUE
	 * @generated
	 * @ordered
	 */
	_16006(14, "_16006", "1600-6");

	/**
	 * The '<em><b>15867</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15867</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15867
	 * @model literal="1586-7"
	 * @generated
	 * @ordered
	 */
	public static final int _15867_VALUE = 0;

	/**
	 * The '<em><b>15875</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15875</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15875
	 * @model literal="1587-5"
	 * @generated
	 * @ordered
	 */
	public static final int _15875_VALUE = 1;

	/**
	 * The '<em><b>15883</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15883</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15883
	 * @model literal="1588-3"
	 * @generated
	 * @ordered
	 */
	public static final int _15883_VALUE = 2;

	/**
	 * The '<em><b>15891</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15891</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15891
	 * @model literal="1589-1"
	 * @generated
	 * @ordered
	 */
	public static final int _15891_VALUE = 3;

	/**
	 * The '<em><b>15909</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15909</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15909
	 * @model literal="1590-9"
	 * @generated
	 * @ordered
	 */
	public static final int _15909_VALUE = 4;

	/**
	 * The '<em><b>15917</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15917</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15917
	 * @model literal="1591-7"
	 * @generated
	 * @ordered
	 */
	public static final int _15917_VALUE = 5;

	/**
	 * The '<em><b>15925</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15925</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15925
	 * @model literal="1592-5"
	 * @generated
	 * @ordered
	 */
	public static final int _15925_VALUE = 6;

	/**
	 * The '<em><b>15933</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15933</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15933
	 * @model literal="1593-3"
	 * @generated
	 * @ordered
	 */
	public static final int _15933_VALUE = 7;

	/**
	 * The '<em><b>15941</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15941</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15941
	 * @model literal="1594-1"
	 * @generated
	 * @ordered
	 */
	public static final int _15941_VALUE = 8;

	/**
	 * The '<em><b>15958</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15958</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15958
	 * @model literal="1595-8"
	 * @generated
	 * @ordered
	 */
	public static final int _15958_VALUE = 9;

	/**
	 * The '<em><b>15966</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15966</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15966
	 * @model literal="1596-6"
	 * @generated
	 * @ordered
	 */
	public static final int _15966_VALUE = 10;

	/**
	 * The '<em><b>15974</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15974</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15974
	 * @model literal="1597-4"
	 * @generated
	 * @ordered
	 */
	public static final int _15974_VALUE = 11;

	/**
	 * The '<em><b>15982</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15982</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15982
	 * @model literal="1598-2"
	 * @generated
	 * @ordered
	 */
	public static final int _15982_VALUE = 12;

	/**
	 * The '<em><b>15990</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15990</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15990
	 * @model literal="1599-0"
	 * @generated
	 * @ordered
	 */
	public static final int _15990_VALUE = 13;

	/**
	 * The '<em><b>16006</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>16006</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_16006
	 * @model literal="1600-6"
	 * @generated
	 * @ordered
	 */
	public static final int _16006_VALUE = 14;

	/**
	 * An array of all the '<em><b>Race American Indian Shoshone</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAmericanIndianShoshone[] VALUES_ARRAY =
		new RaceAmericanIndianShoshone[] {
			_15867,
			_15875,
			_15883,
			_15891,
			_15909,
			_15917,
			_15925,
			_15933,
			_15941,
			_15958,
			_15966,
			_15974,
			_15982,
			_15990,
			_16006,
		};

	/**
	 * A public read-only list of all the '<em><b>Race American Indian Shoshone</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAmericanIndianShoshone> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race American Indian Shoshone</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianShoshone get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianShoshone result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Shoshone</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianShoshone getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianShoshone result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Shoshone</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianShoshone get(int value) {
		switch (value) {
			case _15867_VALUE: return _15867;
			case _15875_VALUE: return _15875;
			case _15883_VALUE: return _15883;
			case _15891_VALUE: return _15891;
			case _15909_VALUE: return _15909;
			case _15917_VALUE: return _15917;
			case _15925_VALUE: return _15925;
			case _15933_VALUE: return _15933;
			case _15941_VALUE: return _15941;
			case _15958_VALUE: return _15958;
			case _15966_VALUE: return _15966;
			case _15974_VALUE: return _15974;
			case _15982_VALUE: return _15982;
			case _15990_VALUE: return _15990;
			case _16006_VALUE: return _16006;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAmericanIndianShoshone(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAmericanIndianShoshone
